from django.db import models


# Create your models here.
class Checker(models.Model):
    cid = models.AutoField(primary_key=True)
    name = models.CharField(max_length=30, default="无名氏", unique=True)
    nickname = models.CharField(max_length=30, default="未设置昵称")
    phone = models.CharField(max_length=11, default="12345678901")
    password = models.CharField(max_length=20, default="admin")
    qq = models.CharField(max_length=11, default="")

    def __str__(self):
        return self.name

    class Meta:
        db_table = "checker"
